﻿body {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Segoe UI', 'Open Sans', sans-serif;
}

pre {
    margin: 0;
    overflow: auto;
}

pre, code {
    font-family: Consolas, 'Courier New', Courier, Monospace;
    font-weight: bold;
    color: darkgreen;
    font-size: small;
}

pre
{
    line-height: 1.4em;
    overflow: visible;
}

figure {
    padding: 0.5em;
    border: 1px solid black;
    overflow: auto;
}

figcaption {
    border-bottom: 1px solid black;
    padding-bottom: 0.5em;
    margin-bottom: 0.5em;
}

li
{
    margin-bottom: 0.5em;
}

a:link
{
    text-decoration: none;
}


.banner
{
    position: relative;
    width: 100%;
    height: 80px;
    padding-bottom: 0.9em;
    border-bottom: 2px solid black;
    background: lightgrey;
}

.banner-main
{
    position: absolute;
    top: 0;
    left: 0;
    font-size: 80px;
}

.banner-byline
{
    position: absolute;
    bottom:0;
    right: 0;
    font-weight: bold;
}

.banner-timestamp
{
    position: absolute;
    top: 0;
    right: 0;
    font-size: small;
    color: white;
}

.top-level-toc
{
    position: fixed;
    overflow-y: auto;
    bottom: 1em;
    left: 1em;
    font-weight: bold;
    line-height: 1.4em;
    width: 20%;
    overflow-y: auto;
    margin-bottom: 4px;
}

.top-level-toc h3
{
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.top-level-toc a
{
    color: red;
    cursor: pointer;
}

.top-level-toc .selected a
{
    color: white;
}

.top-level-toc div.selected
{
    background: black;
}

.chapter-toc
{
    position: fixed;
    overflow-y: auto;
    height: 100%;
    top: 1em;
    right: 1em;
    font-weight: bold;
    line-height: 1.4em;
    width: 20%;
    margin-top: 4px;
}

.chapter-toc h3
{
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.chapter-toc a
{
    color: blue;
    cursor: pointer;
}

.top-level-toc div:hover, .chapter-toc div:hover
{
    background: black;
}

.top-level-toc div:hover a, .chapter-toc div:hover a
{
    color: white;
}

h1
{
    color: red;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

h2
{
    color: blue;
}

h3
{
    color: grey;
}